import scrapy


class MwSpider(scrapy.Spider):
    name = 'mw'
    start_urls = ['http://quotes.toscrape.com/']
    allowed_domains = ['quotes.toscrape.com']
    allowed_paths = ['/page/', '/tag/']

    def parse(self, response):
        print('parsing page %s' % response.url)
        for a in response.xpath('//a'):
            yield response.follow(a)
